var file_manager = new liwe.module ( "file_manager", null, "FileManager" );

file_manager.init = function ()
{
	file_manager.load_templates ( function ()
	{
		console.debug ( "FileManager init" );
	} );
};

file_manager.form_set_fields = function ( frm, caller, module, id_obj )
{
	frm.add ( "upload", "files", { label: "file" } );

	frm.addEventListener ( "submit", function () { console.debug ( "FACCIO I SUMBIT" ); } );
	frm.addEventListener ( "complete", caller.add ( "upload-complete", function () { console.debug ( "UPLOAD COMPLETE" ); } ) );
};
